﻿using CodeCreator;
using System;
using System.Collections.Generic;
using System.Text;

namespace iBing.Common.DbHelper.CoreObj
{
    public class ObjJavaField
    {
        public ObjJavaField() { }
        private bool isPk = false;
        private string dbFieldName;//FIELD_NAME
        private string dbFieldType;
        private string dbFieldLength;
        private string fieldName;//fieldName
        private string fieldType;

        #region 内部封装
        public bool IsPk
        {
            get { return isPk; }
            set { isPk = value; }
        }
        public string DbFieldName
        {
            get { return dbFieldName; }
            set { dbFieldName = value; }
        }
        public string DbFieldType
        {
            get { return dbFieldType; }
            set { dbFieldType = value; }
        }

        public string DbFieldLength
        {
            get { return dbFieldLength; }
            set { dbFieldLength = value; }
        }
        public string FieldName
        {
            get { return fieldName; }
            set { fieldName = value; }
        }
        public string FieldType
        {
            get { return fieldType; }
            set { fieldType = value; }
        }

        #endregion

        #region 扩展属性
        public string FieldNameFU//FieldName
        {
            get
            {
                return Tools.StrFirstToUpper(fieldName);
            }
        }
        #endregion
    }
}
